import asyncio
from api.weather_baidu_webapi import get_weather

async def main():
    # district_id = '110102'  # 北京行政区代码
    # data_type = 'now'       # 获取当前天气
    # result = await get_weather(district_id, data_type, True)
    # print(result)

    district_id = '430400'  # somewhere
    data_type = 'now'       # 获取当前天气
    result = await get_weather(district_id, data_type, True)
    print(result)

if __name__ == "__main__":
    asyncio.run(main())
